//Download by http://www.NewXing.com
// Map.h: interface for the CMap class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAP_H__B7B380A1_37B0_4C24_B7E5_94B29FF454F3__INCLUDED_)
#define AFX_MAP_H__B7B380A1_37B0_4C24_B7E5_94B29FF454F3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <d3dx9.h>

class CMap  
{
public:
	VOID CenterTranslation(FLOAT x,FLOAT z);
	VOID GetCenter(FLOAT* x,FLOAT* z);
	FLOAT m_fCenterZ;
	FLOAT m_fCenterX;
	VOID SetCenter(FLOAT x,FLOAT z);
	HRESULT InitMap(char* strTextureFilePath);
	VOID Render();
	CMap(LPDIRECT3DDEVICE9 pD3DDevice,float Width,float Height);
	virtual ~CMap();

protected:
	float m_iHeight;
	float m_iWidth;
	LPDIRECT3DDEVICE9				m_pD3DDevice;
	LPDIRECT3DVERTEXBUFFER9			m_pVB;
	LPDIRECT3DTEXTURE9				m_pTexture;
};

#endif // !defined(AFX_MAP_H__B7B380A1_37B0_4C24_B7E5_94B29FF454F3__INCLUDED_)
